package com.jxnu.nav_search.utils;

import android.os.Parcel;
import android.os.Parcelable;

public class Datasets implements Parcelable {
    String name;
    int type;
    int aipre;
    String explain;
    String contain;
    String tip;

    protected Datasets(Parcel in) {
        name = in.readString();
        type = in.readInt();
        aipre = in.readInt();
        explain = in.readString();
        contain = in.readString();
        tip = in.readString();
    }

    public static final Creator<Datasets> CREATOR = new Creator<Datasets>() {
        @Override
        public Datasets createFromParcel(Parcel in) {
            return new Datasets(in);
        }

        @Override
        public Datasets[] newArray(int size) {
            return new Datasets[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getAipre() {
        return aipre;
    }

    public void setAipre(int aipre) {
        this.aipre = aipre;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public String getContain() {
        return contain;
    }

    public void setContain(String contain) {
        this.contain = contain;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    @Override
    public String toString() {
        return "Datasets{" +
                "name='" + name + '\'' +
                ", type=" + type +
                ", aipre=" + aipre +
                ", explain='" + explain + '\'' +
                ", contain='" + contain + '\'' +
                ", tip='" + tip + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeInt(type);
        dest.writeInt(aipre);
        dest.writeString(explain);
        dest.writeString(contain);
        dest.writeString(tip);
    }
}
